<div style="min-height: 285px;" class="from_main wrap">
    <div class="panel panel-user">
        <div class="panel-heading"><h3 class="ft-l">账户登录</h3><a href="<?php echo url_for("user/register")?>" class="ft-r">没有账户？马上注册</a></div>
        <div class="panel-body">
            <form novalidate="novalidate" id="loginform" class="form-horizontal" role="form" method="POST" action="<?php echo url_for("user/login")?>">
                <ul class="login_ul">
                    <li>
                        <label class="col-xs-2 control-label">用户名：</label>
                        <div class="col-xs-8">
                            <input value="" class="form-control" id="username" name="username" placeholder="请输入用户名" type="text">
                        </div>
                    </li>
                    <li>
                        <label class="col-xs-2 control-label">密码：</label>
                        <div class="col-xs-8">
                            <input class="form-control" id="password" name="password" placeholder="请输入密码" type="password">
                        </div>
                    </li>
                    <?php if ($sf_user->hasFlash('error')): ?>
                        <label class="errormsg" for="password"><?php echo $sf_user->getFlash('error') ?></label>
                    <?php endif; ?>
                    <li>
                        <label class="col-xs-2 control-label"></label>
                        <div class="col-xs-8">
                            <input class="btn btn-primary" value="登录" type="submit">
                        </div>
                    </li>
                </ul>
                <input value="/account" name="Redirect" type="hidden">
            </form>
            <span class="nouser">忘记密码？<a href="<?php echo url_for("user/resetpwd")?>">马上找回</a></span>
          
        </div>
    </div>
</div>